package com.engineering.elink.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.engineering.elink.common.ErrorType;
import com.engineering.elink.dao.TypeMapper;
import com.engineering.elink.service.TypeService;
import com.engineering.elink.util.JSONUtil;

@Service("typeService")
public class TypeServiceImpl implements TypeService {
	@Autowired
	private TypeMapper TypeMapper;

	@Override
	public Map<String, Object> getList() {
		return JSONUtil.getJSON(ErrorType.SUCCESS,TypeMapper.getList());
	}

}
